﻿//---------------------------------------------------------------------------------
// Copyright 2011 Microsoft Corporation
// Licensed under the Microsoft Public License (MS-PL) (the "License"); 
// You may not use this file except in compliance with the License. 
// You may obtain a copy of the License at http://www.opensource.org/licenses/ms-pl.html
// THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR 
// CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, 
// INCLUDING WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR 
// CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE, 
// MERCHANTABLITY OR NON-INFRINGEMENT. 
// See the Microsoft Public License (MS-PL) for the specific language governing 
// permissions and limitations under the License.
//---------------------------------------------------------------------------------

using System.Runtime.Serialization;

namespace Microsoft.Telco.Web.Contracts
{
    /// <summary>
    /// Dto to carry add spefic data
    /// </summary>
	[DataContract(Namespace = Namespaces.V1)]
    public class Advertisement
    {

		/// <summary>
		/// Gets or sets the type of the ad.
		/// </summary>
		/// <value>The type of the ad.</value>
		[DataMember]
		public AdType AdType { get; set; }

        /// <summary>
        /// Gets or sets the text of the advertisement.
        /// </summary>
        /// <value>The text.</value>
        [DataMember]
        public string Text { get; set; }

        /// <summary>
        /// Gets or sets the image URL of the image being displayed as advertisement.
        /// </summary>
        /// <value>The image URL.</value>
        [DataMember]
        public string ImageUrl { get; set; }

        /// <summary>
        /// Gets or sets the url to redirect to when the user clicks on the ad.
        /// </summary>
        /// <value>The navigate URL.</value>
        [DataMember]
        public string NavigateUrl { get; set; }

    }
}
